﻿
using RBAC.Web.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace RBAC.Web.Controllers
{
    public class InvokeDBController : Controller
    {
        //
        // GET: /InvokeDB/

        public ActionResult Index()
        {
            return View();
        }

        [HttpPost]
        public ActionResult Index(int isFirstTime)
        {
            ServiceClient service = new ServiceClient();
            service.InvokeDB();
            return RedirectToAction("Index", "Home");
        }
    }
}